package com.baomibing.flow.service;

import com.baomibing.flow.dto.SysFlowTaskDto;
import com.baomibing.flow.model.FlowUser;

import java.util.List;

public interface SysFlowTaskService {

    void saveTask(SysFlowTaskDto task);

    void updateTask(SysFlowTaskDto task);

    void updateTasks(List<SysFlowTaskDto> tasks);

    void saveTasks(List<SysFlowTaskDto> tasks);

    List<SysFlowTaskDto> listExecutingTaskByInstance(String instanceId);

    List<SysFlowTaskDto> listUserExecutingTaskByUser(FlowUser user);

    void deleteByInstance(String instanceId);

}
